package com.xumx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by Xumx on 2022/5/18 20:15
 */
@Controller
public class LoginController {

    @GetMapping({"/","/index"})
    public String index(){
        return "index";
    }

    @GetMapping("/user/toAdd")
    public String toAdd(){
        return "user/add";
    }

    @GetMapping("/user/toUpdate")
    public String toUpdate(){
        return "user/update";
    }

    @GetMapping("/order/toAdd")
    public String toOAdd(){
        return "order/add";
    }

    @GetMapping("/order/toUpdate")
    public String toOUpdate(){
        return "order/update";
    }

    @GetMapping("/logout")
    public String logout(){
        return "login";
    }

    @GetMapping("/toLogin")
    public String toLogin(){
        return "login";
    }



}
